package com.ddwl.schema.bo.gate;

import com.ddwl.schema.bo.base.BaseBo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author Fu Zhaohui
 * @date 2017/6/20
 */
@ApiModel("发送短信Bo")
@Setter
@Getter
public class SmsBo extends BaseBo {
    @ApiModelProperty("手机号码")
    @NotNull(message = "手机号码为空")
    @Pattern(regexp = "^1\\d{10}$", message = "手机号码格式错误")
    private String mobile;
    @ApiModelProperty(value = "用户ID", hidden = true)
    private String userId;
    @ApiModelProperty("发送内容")
    private String content;
}
